using System;
using System.ComponentModel;
using System.Runtime.Serialization;

namespace WcfService1.DTO
{
    [DataContract]
    public class MyFaultException : INotifyPropertyChanged
    {
        private String _Reason;

        [DataMember]
        public String Reason
        {
            get { return _Reason; }
            set
            {
                _Reason = value;
                RaisePropertyChanged("Reason");
            }
        }

        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged;

        #endregion

        protected void RaisePropertyChanged(string propertyname)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propertyname));
        }
    }
}